import React from "react";
import {BrowserRouter, useRoutes } from "react-router-dom";
import { routes } from "./router";

function AppRoutes() {
  return useRoutes(routes);
}

function App() {
  return (
    <BrowserRouter
      future={{ v7_relativeSplatPath: true, v7_startTransition: true }}
    >
      <AppRoutes />
    </BrowserRouter>
  );
}

export default App;
